From 6df52102537767a804190c7821462de48566d579 Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Tue, 10 Apr 2018 16:05:18 +0100 Subject: [PATCH] adapt legitimate cargo install usage to avoid the new warning/error --- tests/testsuite/required_features.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testsuite/required_features.rs b/tests/testsuite/required_features.rs index 93ee37780..b3a03327f 100644 --- a/tests/testsuite/required_features.rs +++ b/tests/testsuite/required_features.rs @@ -742,7 +742,7 @@ fn install_default_features() { .file("examples/foo.rs", "fn main() {}") .build(); - assert_that(p.cargo("install"), execs().with_status(0)); + assert_that(p.cargo("install --path ."), execs().with_status(0)); assert_that(cargo_home(), has_installed_exe("foo")); assert_that(p.cargo("uninstall").arg("foo"), execs().with_status(0)); @@ -868,7 +868,7 @@ fn install_multiple_required_features() { .file("src/foo_2.rs", "fn main() {}") .build(); - assert_that(p.cargo("install"), execs().with_status(0)); + assert_that(p.cargo("install --path ."), execs().with_status(0)); assert_that(cargo_home(), is_not(has_installed_exe("foo_1"))); assert_that(cargo_home(), has_installed_exe("foo_2")); assert_that(p.cargo("uninstall").arg("foo"), execs().with_status(0)); @@ -1166,7 +1166,7 @@ Consider enabling them by passing e.g. `--features=\"bar/a\"` // install assert_that( - p.cargo("install"), + p.cargo("install --path ."), execs().with_status(101).with_stderr(format!( "\ [INSTALLING] foo v0.0.1 ([..]) -- 2.30.2